<?php
        class resetpassword extends template{
        
            private $db;
            private $info;
            
            function __construct($db,$info)
           { 
             $this->db=$db;   
             $this->info=$info;
             //$this->db->get_connect();
           }
           

           
           function view(){ 
           
             if($_GET['forgetcode'])
             {
               $this->db->get_connect();
               $this->setdb($this->db);
               
               if($this->checkresetpassword($_GET['forgetcode']))
               {
               $this->db->closedb();
               $data['forgetcode']=$_GET['forgetcode'];
               $this->setdata($data);
               $this->load('resetpassword');
               
               }else
               {
              $this->db->closedb();  
               
               }
               
               
             }else
             {
             
             
             }
             
           
           }
        
        
        }
?>
